package com.dayuanit.dy14.atm.demo2.dy14atmcommon.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class RegistVO {
    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "请输入密码")
    @Length(min = 3, max = 6, message = "密码长度3-6")
    private String password;

    @NotBlank(message = "请输入密码")
    @Length(min = 3, max = 6, message = "密码长度3-6")
    private String confirmPwd;
}
